<?php

namespace app\common\contract;

interface Token
{
    //生成token
    public function generateToken($data);

    //获取token数据
    public function getPayload();

    //验证token
    public function checkToken($token);
}
